Skip to content

features=listtree: lists as trees (P34 B) - #30

Merged
cedricvogel-leo merged 1 commit into
mainfrom
feature/listtree
Nov 5, 2026
Merged

cedricvogel-leo merged 1 commit into
mainfrom
feature/listtree

Conversation

@cedricvogel-leo

Copy link
Copy Markdown
Collaborator

Adds the listtree feature name for glpython-editor#51 (lists as trees, P34 B).

  • features=…,listtree passes listtree to the embed. A list whose first element is a string, such as ["+", 2, ["*", 3, 4]], is then also drawn as a tree:
    • in the visualizer's variables (a wide tree behind «Baum zeigen»);
    • in the full value's window;
    • in the console, through a «Baum» button next to «Visualisieren».
  • Like coverage, it isn't part of «everything»: a block without features= gets no trees.
  • README: the comment in the macro and a paragraph after coverage, for course authors.
  • examples/profiles.md: a new «baum» profile and slide.

Order: merge glpython-editor#51 first. With the embed that is deployed now, listtree is ignored, so nothing breaks if this PR goes in earlier, and no warning appears either.

Going live: courses that want trees add listtree to a profile's features= and need a patch version bump.

Tested in the LiaScript player (headless Chrome) against a local build of #51's embed, «baum» slide, at 1000 px and 420 px: the «Baum» buttons, the trees in the console, a tree in the panel, and «Baum zeigen» opening the dialog. check-macro passes.

🤖 Generated with Claude Code

"listtree" passes on to the embed, which draws a list whose first element
is a string also as a tree (variables, full value, console). Like
"coverage" it isn't part of «everything». examples/profiles.md gets a
"baum" profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cedricvogel-leo
cedricvogel-leo merged commit 2df6a37 into main Nov 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant